package com.infore.statisticsAndAlarm.util;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class ArrayUtils {
	
	// 字符串转集合
	public static List<String> stringToList(String string) {
		List<String> list = new ArrayList<>();
		if (string.contains(",")) {
			list = Arrays.asList(string.split(","));
		} else {
			list.add(string);
		}
		return list;
	}
}
